package com.yunnuy.webbs.controller

import com.yunnuy.webbs.repository.UserRepository
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class IndexController(private val userRepository: UserRepository) {

    @GetMapping("/index")
    fun findAll() = userRepository.findAll()
}